#include "main.h"
#include "SimulatorWin.h"
#include <shellapi.h>
#include "Socket.h"
int APIENTRY _tWinMain(HINSTANCE hInstance,
	HINSTANCE hPrevInstance,
	LPTSTR    lpCmdLine,
	int       nCmdShow)
{
	UNREFERENCED_PARAMETER(hPrevInstance);
	UNREFERENCED_PARAMETER(lpCmdLine);
	auto simulator = SimulatorWin::getInstance();
	AllocConsole();
	freopen("CONOUT$", "w", stdout);
	simulator->run();
	Socket::GetInstance()->DisConnected();

	FreeConsole();
	return 0;
}
